import java.util.Scanner;


public class Student {
	int num;
	String name;
	int score;
		
	// Getters and Setters
	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getNum() {
		return num;
	}

	public String getName() {
		return name;
	}

	Scanner in = new Scanner(System.in);
	
	// Constructors
	public Student()
	{
		System.out.print("Please enter the number: ");
		this.num = in.nextInt();
		
		System.out.print("Please enter the name: ");
		this.name = in.next();
		
		System.out.print("Please enter the score: ");
		this.score = in.nextInt();
	}
	
	public Student(int num, String name, int score)
	{
		this.num = num;
		this.name = name;
		this.score = score;
	}
	
	public String toString()
	{
		StringBuffer str = new StringBuffer();
		
		str.append(num + "\t");
		str.append(name + "\t");
		str.append(score + "\t");
		
		return str.toString();
	}
	
	// Destructor
	protected void finalize() throws Throwable
	{
		in.close();
	}
}
